import torch
import torch.nn as nn
from torchvision import transforms
import open3d as o3d
import numpy as np
#定义源数据
pcd = o3d.io.read_point_cloud("C:/Users/TOP/Desktop/scan2.ply")#传入3d点云

vis = o3d.visualization.Visualizer()
vis.create_window()	#创建窗口
render_option: o3d.visualization.RenderOption = vis.get_render_option()	#设置点云渲染参数
render_option.background_color = np.array([106,90,205])	#设置背景色（这里为黑色）
render_option.point_size = 2.0	#设置渲染点的大小
vis.add_geometry(pcd)	#添加点云
vis.run()
